package com.itheima.dao;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;

@Mapper
public interface UserDao {
    @Select("select * from t_user where username = #{username}")
    User loadUserByUsername(String username);

    @Select("select count(*) from t_member where regTime = #{date}")
    Integer getDateSum(LocalDate date);
}
